package com.hunt.controller;

import com.hunt.service.FinancialDataServiceNew;
import com.hunt.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author xys
 * @Date 2021/9/27
 * @Description
 */
//已弃用
//@Api(value = "外部输入原同花顺财务数据")
//@Controller
//@RequestMapping(path = "/outside/financialdata")
//public class FinancialDataController extends BaseController{
//    @Autowired
//    private FinancialDataServiceNew FinancialDataServiceNew;
//    @ApiOperation(value = "输入财务数据列表", httpMethod = "POST", produces = "application/json", response = Result.class)
//    @ResponseBody
//    @RequestMapping(value = "insertfinancialdata", method = RequestMethod.POST)
//    public Result insertstopstockcode(@RequestParam(value = "data", defaultValue = "0") String data) {
//        if(data.equals("0")){
//            return  Result.error();
//        }
//        else {
//            FinancialDataServiceNew.insertdata(data);
//    }
//        return  Result.success();
//    }
//    @ApiOperation(value = "输入财务板块数据列表", httpMethod = "POST", produces = "application/json", response = Result.class)
//    @ResponseBody
//    @RequestMapping(value = "insertfinancialplate", method = RequestMethod.POST)
//    public Result insertfinancialplate(@RequestParam(value = "data", defaultValue = "0") String data) {
//        if(data.equals("0")){
//            return  Result.error();
//        }
//        else {
//            FinancialDataServiceNew.insertblock(data);
//        }
//        return  Result.success();
//    }
//    @ApiOperation(value = "输入财务涨跌停数据列表", httpMethod = "POST", produces = "application/json", response = Result.class)
//    @ResponseBody
//    @RequestMapping(value = "insertfinanciallimit", method = RequestMethod.POST)
//    public Result insertfinanciallimit(@RequestParam(value = "data", defaultValue = "0") String data) {
//        if(data.equals("0")){
//            return  Result.error();
//        }
//        else {
//            FinancialDataServiceNew.insertlimit(data);
//        }
//        return  Result.success();
//    }
//    @ApiOperation(value = "输入财务基础数据列表", httpMethod = "POST", produces = "application/json", response = Result.class)
//    @ResponseBody
//    @RequestMapping(value = "insertstockbasemessage", method = RequestMethod.POST)
//    public Result insertstockbasemessage(@RequestParam(value = "data", defaultValue = "0") String data) {
//        if(data.equals("0")){
//            return  Result.error();
//        }
//        else {
//            FinancialDataServiceNew.insertstockbasemessage(data);
//        }
//        return  Result.success();
//    }
//}
